package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 业务进度表
 * </p>
 *
 * @author long
 * @since 2024-11-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_progress")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ProgressDo extends Model<ProgressDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 类型
     */
    @TableField("type")
    private Integer type;

    /**
     * 三方单号
     */
    @TableField("biz_number")
    private Long bizNumber;

    /**
     * 业务类型 eg.创建 提交...
     */
    @TableField("biz_type")
    private String bizType;

    /**
     * 操作人
     */
    @TableField("operate_by")
    private String operateBy;

    /**
     * 操作时间
     */
    @TableField("operate_time")
    private Date operateTime;

    /**
     * 排序
     */
    @TableField("sort")
    private int sort;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
